from PIL import Image, ImageFilter,ImageDraw,ImageFont   # 操作图片的类型
import time


# 加载图片
image = Image.open('test1.jpg')
im_log = Image.open('test.png')

image1 = image.crop(box=(0, 0, 2000, 2000)) # 600 * 336
image1.show()
image1.save('test2.jpg')

image2 = image.rotate(100)
image2.show()
image2.save('test3.jpg')

im_mark = Image.new('RGBA', image.size)
im_mark.paste(im_log,(0,0))
im_out = Image.composite(im_mark,image, im_mark)
im_out.show()
im_out.save('test4.jpg')